<div class="card-head">
    <span class="ft-primary">新增监听配置</span>
</div>
<div class="card">
    <form (ngSubmit)="onSubmit()" #adForm="ngForm" novalidate>
        <div class="card-block">
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-sm-right">事件类型<b class="text-danger">*</b></label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入事件类型" name="etype" [(ngModel)]="data.etype" required>
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-sm-right">事件行为<b class="text-danger">*</b></label>
                <div class="col-sm-9">
                    <input type="text" class="form-control" placeholder="请输入事件类型" name="action" [(ngModel)]="data.action">
                </div>
            </div>
            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-sm-right">回调连接<b class="text-danger">*</b></label>
                <div class="col-sm-9">
                    <input type="url" class="form-control" placeholder="请输入回调连接" name="hookurl" [(ngModel)]="data.hookurl" required>
                </div>
            </div>


            <div class="form-group row">
                <label class="col-sm-2 col-form-label text-sm-right"></label>
                <div class="col-sm-9">
                    <button type="submit" class="exbtn exbtn-primary" [disabled]="!adForm.form.valid||waiting">保存</button>
                    <back #back></back>
                </div>
            </div>
        </div>
    </form>
</div>